﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Admin/MasterPage.master"
    CodeFile="Default.aspx.cs" Inherits="Admin_Default" EnableEventValidation="false"
    EnableViewState="true" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">
    <h1>
        Главная
    </h1>
    <br />
    <div class="RegularBold">
        Page keywords</div>
    <asp:TextBox runat="server" ID="txtKeywords" Width="500px"></asp:TextBox>
    <br />
    <div class="RegularBold">
        Page description</div>
    <asp:TextBox runat="server" ID="txtDescription" Width="500px"></asp:TextBox>
    <div class="RegularBold">
        Browser title</div>
    <asp:TextBox runat="server" ID="txtBrowserTitle" Width="500px"></asp:TextBox>
    <br />
    <asp:Button ID="Button2" runat="server" Text="Сохранить" OnClick="btnAddDescription_Click">
    </asp:Button>
    <br />
    <img src="images/Delimiter.png" border="0" alt=""><br />
    <h2>
        Текст на главной странице
    </h2>
    <div class="RegularBold">Заголовок</div>
    <asp:TextBox runat="server" ID="txtHPTextTitle" Width="300px"></asp:TextBox><br />
    <div class="RegularBold">контент</div>
    <FCKeditorV2:FCKeditor ID="txtHPTextContent" runat="server" BasePath="~/fckeditor/"
        Width="480px" Height="210px" ToolbarSet="Basic">
    </FCKeditorV2:FCKeditor>
    <asp:Button runat="server" ID="Button3" Text="Сохранить" OnClick="btnHPTextSave_Click" />
    <br />
    <img src="images/Delimiter.png" border="0" alt=""><br />
    <h2>
        Футер сайта
    </h2>
    <div class="RegularBold">
        Наши партнеры</div>
    <%--<ajax:ConfirmButtonExtender ID="cbe" runat="server"
    TargetControlID="ctl00$MainContent$gvPartners$ctl03$btnDeletePartner"
    ConfirmText="Are you sure you want to click this?"
    OnClientCancel="CancelClick" />--%>
    <asp:GridView ID="gvPartners" runat="server" AutoGenerateColumns="false" CssClass="SiteStats"
        AllowPaging="false" AlternatingRowStyle-CssClass="SiteStatsA" RowStyle-CssClass="SiteStats"
        Width="98%" AllowSorting="false" OnRowDataBound="gvPartners_DataBinding">
        <Columns>
            <asp:BoundField DataField="LinkText" HeaderText="Отображаемый текст" HeaderStyle-CssClass="StatsHeader" />
            <asp:BoundField DataField="LinkUrl" HeaderText="Ссылка на сайт URL" HeaderStyle-CssClass="StatsHeader" />
            <asp:TemplateField HeaderText="Действие" HeaderStyle-CssClass="StatsHeader">
                <ItemTemplate>
                    <asp:ImageButton runat="server" ToolTip="Click to move this row up" ImageUrl="Images/MoveUp.png"
                        ID="btnUp" OnCommand="gvPartners_ItemCommand" CausesValidation="false" CommandName="MoveUp"
                        CommandArgument='<%# Eval("ID") %>' />
                    <asp:ImageButton runat="server" ToolTip="Click to move this row down" ImageUrl="Images/MoveDown.png"
                        CommandName="MoveDown" ID="btnDown" OnCommand="gvPartners_ItemCommand" CommandArgument='<%# Eval("ID") %>' />
                    <asp:Button OnCommand="btnDeletePartner_Click" CausesValidation="false" UseSubmitBehavior="false"
                        CommandArgument='<%# Eval("ID") %>' Text='удалить' ID="btnDeletePartner" CssClass="but"
                        runat="server" />
                    <asp:Button OnCommand="btnEditPartner_Click" UseSubmitBehavior="false" CommandArgument='<%# Eval("ID") %>'
                        Text="редактировать" runat="server" ID="btnEditLnk" CssClass="but" />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <table>
        <tr>
            <td>
                <asp:HiddenField runat="server" ID="hfAddPartner" />
                <asp:Label runat="server" CssClass="RegularText" ID="lblAddPartner" Text="Добавить Ссылку:"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label runat="server" CssClass="RegularText" ID="lblAddPartnerText" Text="Отображаемый текст:"></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" CssClass="TextField" ID="txtAddPartnerText"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label runat="server" CssClass="RegularText" ID="lblAddPartnerLink" Text="Ссылка на сайт URL:"></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" CssClass="TextField" ID="txtAddPartnerLink"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Button runat="server" ID="btnAddPartnerLink" Text="Добавить" OnClick="btnAddPartnerLink_Click" />
            </td>
        </tr>
    </table>
    <br />
    <img src="images/Delimiter.png" border="0" alt="">
    <div class="RegularBold">
        Ссылки
    </div>
    <asp:GridView ID="gvLinks" runat="server" AutoGenerateColumns="false" CssClass="SiteStats"
        AllowPaging="false" AlternatingRowStyle-CssClass="SiteStatsA" RowStyle-CssClass="SiteStats"
        Width="98%" AllowSorting="false" OnRowDataBound="gvLinks_DataBinding">
        <Columns>
            <asp:BoundField DataField="LinkText" HeaderText="Отображаемый текст" HeaderStyle-CssClass="StatsHeader" />
            <asp:BoundField DataField="LinkUrl" HeaderText="Ссылка на сайт URL" HeaderStyle-CssClass="StatsHeader" />
            <asp:TemplateField HeaderText="Действие" HeaderStyle-CssClass="StatsHeader" ItemStyle-VerticalAlign="Middle">
                <ItemTemplate>
                    <asp:ImageButton runat="server" ToolTip="Click to move this row up" ImageUrl="Images/MoveUp.png"
                        ID="btnUp" OnCommand="gvLinks_ItemCommand" CausesValidation="false" CommandName="MoveUp"
                        CommandArgument='<%# Eval("ID") %>' />
                    <asp:ImageButton runat="server" ToolTip="Click to move this row down" ImageUrl="Images/MoveDown.png"
                        CommandName="MoveDown" ID="btnDown" OnCommand="gvLinks_ItemCommand" CommandArgument='<%# Eval("ID") %>' />
                    <asp:Button OnCommand="btnDeleteLink_Click" CausesValidation="false" UseSubmitBehavior="false"
                        CommandArgument='<%# Eval("ID") %>' Text='удалить' ID="btnDeleteLink" CssClass="but"
                        runat="server" />
                    <asp:Button OnCommand="btnEditLink_Click" UseSubmitBehavior="false" CommandArgument='<%# Eval("ID") %>'
                        Text="редактировать" runat="server" ID="btnEditLnk" CssClass="but" />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <EmptyDataTemplate>
            Пусто
        </EmptyDataTemplate>
    </asp:GridView>
    <table>
        <tr>
            <td>
                <asp:HiddenField runat="server" ID="hfLinks" />
                <asp:Label runat="server" CssClass="RegularText" ID="Label1" Text="Добавить Ссылку:"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label runat="server" CssClass="RegularText" ID="lnkAddLinkText" Text="Отображаемый текст:"></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" CssClass="TextField" ID="txtAddLinkText"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label runat="server" CssClass="RegularText" ID="lnkAddLinkURL" Text="Ссылка на сайт URL:"></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" CssClass="TextField" ID="txtAddLinkURL"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Button runat="server" ID="Button1" Text="Добавить" OnClick="btnAddLink_Click" />
            </td>
        </tr>
    </table>
    <br />
    <img src="images/Delimiter.png" border="0" alt="">
    <div class="RegularBold">
        Информация:</div>
    <FCKeditorV2:FCKeditor ID="edInformation" runat="server" BasePath="~/fckeditor/"
        Width="480px" Height="210px" ToolbarSet="Basic">
    </FCKeditorV2:FCKeditor>
    <asp:Button runat="server" ID="btnInfoSave" Text="Сохранить" OnClick="btnInfoSave_Click" />
    <br />
    <img src="images/Delimiter.png" border="0" alt="">
    <div class="RegularBold">
        Копирайт:</div>
    <FCKeditorV2:FCKeditor ID="edCopyright" runat="server" BasePath="~/fckeditor/" Width="480px"
        Height="210px" ToolbarSet="Basic">
    </FCKeditorV2:FCKeditor>
    <asp:Button runat="server" ID="btnCopyrightSave" Text="Сохранить" OnClick="btnCopyrightSave_Click" />
</asp:Content>
